package com.bfs.anasit.service;

import com.bfs.anasit.model.Record;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: lukman
 * Date: 8/5/11
 * Time: 3:47 AM
 * To change this template use File | Settings | File Templates.
 */
public interface RecordService {
    /**
     * Get Patient with the associated patientId.
     *
     * @param recordId - record ID
     * @return Record object if provided patientId is
     *         found in the data repository, otherwise return null
     */
    public Record findByRecordId(Long recordId);


    /**
     * Get all Record objects.
     *
     * @return List of Record objects
     */
    public List<Record> findAllRecords();


    /**
     * Update the data repository with the
     * state of the provided Record object.
     *
     * @param record Person object
     */
    public void update(Record record);


    /**
     * Remove the associated Record
     * record from the data repository.
     *
     * @param record
     */
    public void delete(Record record);


    /**
     * Save the state of the provided
     * Record object into the data
     * repository.
     *
     * @param record record to save
     */
    public void save(Record record);
}
